Skip to content

feat(java): bind expiry and purpose to proxy references#356

Merged
pratyush618 merged 3 commits into
masterfrom
feat/java-proxy-binding
Jul 2, 2026
Merged

feat(java): bind expiry and purpose to proxy references#356
pratyush618 merged 3 commits into
masterfrom
feat/java-proxy-binding

Conversation

@pratyush618

Copy link
Copy Markdown
Collaborator

What

Extends signed ProxyRef (#349) with two optional, tamper-proof bindings so a cross-process handle can be scoped in time and intent.

  • ProxyRef gains nullable expiresAtMs + purpose (canonical 5-arg ctor; 3-arg convenience ctor kept for back-compat). Both are folded into the HMAC signature, so neither can be altered without breaking verification.
  • Proxies.deconstruct(value[, ttl[, purpose]]) — sets expiry (now + ttl) and/or a purpose tag.
  • reconstruct(ref[, expectedPurpose]) / resolve(...) — reject an expired ref, and (when expectedPurpose is given) a purpose mismatch. Signature is always verified first (constant-time).
  • README: repositions worker-DI/Resource injection as the primary path and proxies as the secondary cross-process escape hatch; refreshes the enqueue-gates section for the new EnqueueDecision/Recipes surface.

Carries the deconstruct(null) guard and duplicate-handler-id rejection from #349 through the new canonical path.

Test

ProxyTest — within-TTL round-trip, expired-ref rejection, tampered-expiry (signature) rejection, purpose enforcement (match/unchecked/mismatch), plus the retained null/duplicate-handler guards.

./gradlew build green (JDK 17 build leg + 21/25 test legs).

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dfad22f4-2c1d-48c5-9b4a-e7527ac14c4a

📥 Commits

Reviewing files that changed from the base of the PR and between 8ad16eb and ab171e8.

📒 Files selected for processing (4)
  • sdks/java/README.md
  • sdks/java/src/main/java/org/byteveda/taskito/proxies/Proxies.java
  • sdks/java/src/main/java/org/byteveda/taskito/proxies/ProxyRef.java
  • sdks/java/src/test/java/org/byteveda/taskito/ProxyTest.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/java-proxy-binding

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the docs label Jul 2, 2026
@pratyush618 pratyush618 self-assigned this Jul 2, 2026
@pratyush618
pratyush618 force-pushed the feat/java-proxy-binding branch from 375b6e4 to ab171e8 Compare July 2, 2026 06:17
@pratyush618
pratyush618 merged commit 756f5ff into master Jul 2, 2026
18 checks passed
@pratyush618
pratyush618 deleted the feat/java-proxy-binding branch July 2, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant